﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.ComponentModel;

namespace BPMS.Entity
{
    public class Person
    {

        //[Description("编号")]
        public string PerId { get; set; }
        [Description("姓名")]
        public string RealName { get; set; }
        [Description("集团")]
        public string SubCompany { get; set; }
        [Description("子公司")]
        public string Company { get; set; }
        [Description("部门")]
        public string Department { get; set; }
        [Description("工作组")]
        public string Workgroup { get; set; }
        [Description("电话1")]
        public string Tel1 { get; set; }
        [Description("电话2")]
        public string Tel2 { get; set; }
        [Description("电话3")]
        public string Tel3 { get; set; }
        [Description("修改日期")]
        public DateTime? ModifyDate { get; set; }
    }

    public class WorkGroup
    {
        public WorkGroup()
        {
            Persons = new List<Person>();
        }
        public string RealName { get; set; }
        public List<Person> Persons { get; set; }
    }

    public class Department
    {
        public Department()
        {
            WorkGroups = new List<WorkGroup>();
        }
        public string RealName { get; set; }
        public List<WorkGroup> WorkGroups { get; set; }
    }

    public class Company
    {
        public Company()
        {
            Departments = new List<Department>();
        }
        public string RealName { get; set; }
        public List<Department> Departments { get; set; }
    }

    public class SubCompany
    {
        public SubCompany()
        {
            Companys = new List<Company>();
        }
        public string RealName { get; set; }
        public List<Company> Companys { get; set; }
    }
    public class Root
    {
        public Root()
        {
            SubCompanys = new List<SubCompany>();
        }
        public int totalNum { get; set; }
        public List<SubCompany> SubCompanys { get; set; }
    }
}
